Crate win_etw_provider

source ·
Expand description

Enables Rust apps to report events using Event Tracing for Windows.

See About Event Tracing.

Macros

  • Initializes a GUID from literal values.

Structs

  • Implements Provider by registering with ETW.
  • Contains a reference to the data for an event field. The type of the data is not specified in this structure; instead, the type of the data is stored in the event’s metadata. (See win_etw_metadata::InFlag.)
  • Describes parameters for an event. This is an implementation detail, and should not be directly used by applications.
  • Allows an application to override the parameters for an event. The first parameter of each generated event method is options: Option<&EventOptions>.
  • See [FILETIME](https://docs.microsoft.com/en-us/windows/win32/api/minwinbase/ns-minwinbase-filetime).
  • The Windows GUID type.
  • Predefined event tracing levels
  • Implements Provider by discarding all events.
  • This has the same in-memory representation as the Win32 [SOCKADDR_IN] structure.
  • See [SOCKADDR_IN6_LH](https://docs.microsoft.com/en-us/windows/win32/api/ws2ipdef/ns-ws2ipdef-sockaddr_in6_lh).

Enums

  • Errors returned by win_etw_provider functions.

Traits

  • Describes the functions needed for an event provider backend. This is an implementation detail, and should not be used directly by applications.

Functions

  • Generates a new activity ID.
  • Allows an application to enter a nested activity scope. This creates a new activity ID, sets this activity ID as the current activity ID of the current thread, and then runs the provided function. After the function finishes, it restores the activity ID of the calling thread (even if a panic occurs).